#pragma once
#include <Windows.h>
#include <vector>

#include "Player.h"
#include "ServerErrors.h"

class RegUtils
{
public:
	static const HKEY REG_KEY;
	static const char REG_GAME_PATH[];
	static const char REG_PLAYERS_PATH[];
	static const char REG_TOP10_PATH[];
public:
	RegUtils(void);
	~RegUtils(void);

	static ServerError SavePlayerInfo(Player& _player);
	static ServerError LoadPlayerInfo(Player& _player);
	static ServerError CreatePlayer(Player& _player);
	static ServerError LoadTop10Usernames(vector<string>& _usernames);
	static ServerError SaveTop10Usernames(vector<string>& _usernames);
	static bool PlayerExists(string _username);
};

